<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<c:forEach items="${menus}" var="menu">
    <li>
        <a data-href="${menu.href}">
            <i class="fa fa-circle-o"></i> ${menu.permissionName}
        </a>
        <c:if test="${not empty menu.subPermission}">
            <ul class="treeview-menu">
                <c:set value="${menu.subPermission}" var="menus" scope="request"/>
                <jsp:include page="menu-bar.jsp"/>
            </ul>
        </c:if>
    </li>
</c:forEach>

